package com.pan.behavioral.status.weather;

import com.pan.behavioral.observer.pattern.Observer;
import com.pan.behavioral.observer.pattern.Subject;
import com.pan.behavioral.status.pattern.Context;
import com.pan.behavioral.status.pattern.Status;

public class Person implements Context {
    private Status status;
    @Override
    public void setStatus(Status status) {
        this.status = status;
    }
    @Override
    public Status getStatus() {
        return this.status;
    }

    public void displayBehavior(){
        System.out.print("Person Behavior: ");
        getStatus().doAction();
    }
}
